package com.yanzhu.service.impl;

import com.yanzhu.service.TempletService;
import com.yanzhu.service.mapper.TempletMapper;
import com.yanzhu.service.model.Templet;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 方炎柱
 * @Description:
 * @Date: Created in 19:49 2018/1/31
 * @Modified:
 */
@AllArgsConstructor
@Service
public class TempletServiceImpl implements TempletService {
    private TempletMapper templetMapper;

    @Override
    public int insert(Templet templet) {
        return templetMapper.insert(templet);
    }

    @Override
    public Templet queryTempletById(long id) {
        return templetMapper.queryTempletById(id);
    }

    @Override
    public List<Templet> queryTempletList() {
        return templetMapper.queryTempletList();
    }

    @Override
    public int deleteTempletById(long id) {
        return templetMapper.deleteTempletById(id);
    }
}
